#include "GameOverMenu.h"
#include "Application.h"

GameOverMenu::GameOverMenu(Application* app) : Menu(app)
{
    setBackgroundImage("game_over.png");
}

void GameOverMenu::onEvent(sf::Event* event)
{
    if(event->type == sf::Event::KeyPressed || event->type == sf::Event::MouseButtonPressed)
    {
        app->setActiveMode(Application::MAIN_MENU);
    }
}

GameOverMenu::~GameOverMenu()
{
    //dtor
}
